<?php 
class gopyadmin extends CI_Controller
{
	function danhsachgopy()
	{
		$data = array( 
			'dsgy'=>$this->mgopy->danhsachgy(),
			'page'=>'danhsachgopy'
		);
		$this->load->view('admin/templateadmin', $data);
	}
	
	function xoagopy($magy)
	{
		$this->mgopy->xoagy($magy);
		redirect('admin/gopyadmin/danhsachgopy');	
	}
	
	function thongtingopy($magy)
	{
		$data = array(
			'page'=>'thongtingopy',
			'ttgy'=>$this->mgopy->thongtingy($magy)
		);
		$this->load->view('admin/templateadmin', $data);
	}
}

?>